<?php

namespace App\Repository\Eloquent;

// use App\Models\Role;
use Spatie\Permission\Models\Role;
use App\Repository\Contracts\RoleRepository;
use Phpno1\Architecture\Eloquent\AbstractRepository;

class RoleRepositoryEloquent extends AbstractRepository implements RoleRepository
{
    protected $filters = [
        // filter and sort settings
    ];

    public function entity()
    {
        return Role::class;
    }

    public function createRole($data)
    {
       return $this->toEntity()->create($data);
    }
}